<%@ page contentType="text/html;charset=UTF-8" language="java"
pageEncoding="UTF-8"
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>编辑图书</title>
<%--<link type="text/css" rel="stylesheet" href="../../static/css/common.css" >--%>
    <%@include file="/pages/common/head.jsp"%><%--静态引用,包括项目起始点,和css,jquery等头部信息 --%>
<style type="text/css">
    h1 {
        text-align: center;
        margin-top: 200px;
    }

    h1 a {
        color:red;
    }

    input {
        text-align: center;
    }
</style>
</head>
<body>
        <div id="header">
            <img class="logo_img" alt="" src="../../static/img/logo.gif_old" >
            <span class="wel_word">编辑图书</span>
<%--            <div>--%>
<%--                <a href="book_manager.jsp">图书管理</a>--%>
<%--                <a href="order_manager.jsp">订单管理</a>--%>
<%--                <a href="../../index_book.jsp">返回商城</a>--%>
<%--            </div>--%>
        <%@include file="/pages/common/manager_menu.jsp"%><%--静态包含,导航公共页--%>
        </div>

        <div id="main">
            <form action="<%=basepath+"manager/bookServlet?action=doAddBook"%>" method="post">
                <table>
                    <tr>
                        <td>名称</td>
                        <td>价格</td>
                        <td>作者</td>
                        <td>销量</td>
                        <td>库存</td>
                        <td>图片</td>
                        <td colspan="2">操作</td>
                    </tr>
                    <tr>
                        <input name="id" type="hidden" value="${book.id}" />
                        <td><input name="name" type="text" value="${book.name}" /></td>
                        <td><input name="price" type="text" value="${book.price}"  /></td>
                        <td><input name="author" type="text" value="${book.author}"  /></td>
                        <td><input name="sales" type="text" value="${book.sales}"  /></td>
                        <td><input name="stock" type="text" value="${book.stock}"  /></td>
<%--                        <td><input name="imp_path" type="file" /></td>--%>
                        <input name="page" type="hidden" value="${requestScope.page}" />${requestScope.page}
                        <td><input type="submit" value="提交"/></td>
                    </tr>
                </table>
            </form>


        </div>

<%--        <div id="bottom">--%>
<%--            <span>--%>
<%--                尚硅谷书城.Copyright &copy;2015--%>
<%--            </span>--%>
<%--        </div>--%>
        <%@include file="/pages/common/foot.jsp"%><%--静态引用,公共底部--%>
</body>
</html>